import $http from '@/assets/js/http'

//上传base64
export function uploadimg(imgurl) {
    return $http.post('/api/common/upload/base64',{
       
            base64: imgurl,
      
    });
}

//七牛云上传token
export function getQiniuToken() {
    return $http.get('/api/qiniu/uptoken', {
       
    });
}

//快递公司列表
export function getcompanyList() {
    return $http.get('/api/express/companyList', {
       
    });
}

//查询快递详情
export function getExpressDetail(sn,no) {
    return $http.get('/api/express/detail', {
        params: { 
            expressKey:sn,//快递公司编码
            expressCode:no,//快递单号
        }
    });
}

//查询我的消息列表
export function getMessageList(index,size,lang) {
    return $http.get('/api/message/list', {
        params:{
            pageIndex:index,
            pageSize:size,
            lang:lang,
        }
    });
}

//删除消息
export function postDelmessage(messageId,lang) {
    return $http.post('/api/message/delete', {
        messageId:messageId,
        lang:lang
    });
}

//平台收货地址
export function getPlatformAddress(lang) {
    return $http.get('/api/address/platform/address', {
        params:{
            lang:lang,
        }
    });
}
//获得保证金金额
export function getBondFee(){
    return $http.get('/api/config/getBondFee', {
        params:{
            
        }
    });
}

//网站操作指南
export function getGuide(id,lang){
    return $http.get('/api/guide/detail',{
        params:{
            id:id,
            lang:lang
        }
    })
}

//获得法律声明（用户协议）
export function getLawSay(lang){
    return $http.get('/api/config/userXieyi', {
        params:{
            lang:lang,
        }
    });
}
